package xin.yangshuai.log01.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * HelloService
 *
 * @author shuai
 * @date 2023/8/18
 */
@Service
public class HelloService {

    private static final Logger logger = LoggerFactory.getLogger(HelloService.class);

    public void hello() {
        logger.info("hello");
        Hi hi = new Hi();
        new Thread(hi).start();
    }

    class Hi implements Runnable {
        @Override
        public void run() {
            logger.info("hi");
        }
    }
}
